import Main from "../views/Main/Main";
// 框架内部的路由
const RouterIn = [{
    path: "/admin/",
    component: Main,
    redirect: {
        path: "/admin/welcome"
    },
    children: [{
        path: "welcome",
        component: () =>
            import ("@/views/Main/Welcome.vue")
    }, {
        path: "userlist",
        component: () =>
            import ("@/views/User/UserList.vue")
    }, {
        path: "adduser",
        component: () =>
            import ("@/views/User/AddUser.vue")
    }, {
        path: "goodslist",
        component: () =>
            import ("@/views/Goods/GoodsList.vue")
    }, {
        path: "catelist",
        component: () =>
            import ("@/views/Goods/CategoryList.vue")
    }]
}]



// 框架外部的路由
const RouterOut = [{
    path: "/",
    redirect: "/admin/Login"
}, {
    path: "/admin/Login",
    component: () =>
        import ("@/views/Login/Login")
}]
export default [...RouterOut, ...RouterIn];